package org.dreamwork.cai.io;

public class RemoteResult {
    public final int code;
    public final Object result;
    public final String error;

    public RemoteResult (int code, String result) {
        this (code, result, null);
    }

    public RemoteResult (String error, int code) {
        this (code, null, error);
    }

    public RemoteResult (int code, String result, String error) {
        this.code = code;
        this.result = result;
        this.error = error;
    }
}